Optimal. Leaf size=165 \[ -\frac{\sqrt{f+g x} \left (a e^2-b d e+c d^2\right )}{e (d+e x) (e f-d g)^2}+\frac{\tanh ^{-1}\left (\frac{\sqrt{e} \sqrt{f+g x}}{\sqrt{e f-d g}}\right ) (c d (4 e f-d g)-e (-3 a e g+b d g+2 b e f))}{e^{3/2} (e f-d g)^{5/2}}-\frac{2 \left (a g^2-b f g+c f^2\right )}{g \sqrt{f+g x} (e f-d g)^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.773315, antiderivative size = 165, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.148 \[ -\frac{\sqrt{f+g x} \left (a e^2-b d e+c d^2\right )}{e (d+e x) (e f-d g)^2}+\frac{\tanh ^{-1}\left (\frac{\sqrt{e} \sqrt{f+g x}}{\sqrt{e f-d g}}\right ) (c d (4 e f-d g)-e (-3 a e g+b d g+2 b e f))}{e^{3/2} (e f-d g)^{5/2}}-\frac{2 \left (a g^2-b f g+c f^2\right )}{g \sqrt{f+g x} (e f-d g)^2} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x + c*x^2)/((d + e*x)^2*(f + g*x)^(3/2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((c*x**2+b*x+a)/(e*x+d)**2/(g*x+f)**(3/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.877007, size = 155, normalized size = 0.94 \[ -\frac{\sqrt{f+g x} \left (\frac{a e^2-b d e+c d^2}{d e+e^2 x}+\frac{2 \left (g (a g-b f)+c f^2\right )}{g (f+g x)}\right )}{(e f-d g)^2}-\frac{\tanh ^{-1}\left (\frac{\sqrt{e} \sqrt{f+g x}}{\sqrt{e f-d g}}\right ) (e (-3 a e g+b d g+2 b e f)+c d (d g-4 e f))}{e^{3/2} (e f-d g)^{5/2}} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x + c*x^2)/((d + e*x)^2*(f + g*x)^(3/2)),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.03, size = 418, normalized size = 2.5 \[ -2\,{\frac{ag}{ \left ( dg-ef \right ) ^{2}\sqrt{gx+f}}}+2\,{\frac{bf}{ \left ( dg-ef \right ) ^{2}\sqrt{gx+f}}}-2\,{\frac{c{f}^{2}}{g \left ( dg-ef \right ) ^{2}\sqrt{gx+f}}}-{\frac{aeg}{ \left ( dg-ef \right ) ^{2} \left ( egx+dg \right ) }\sqrt{gx+f}}+{\frac{bdg}{ \left ( dg-ef \right ) ^{2} \left ( egx+dg \right ) }\sqrt{gx+f}}-{\frac{c{d}^{2}g}{ \left ( dg-ef \right ) ^{2}e \left ( egx+dg \right ) }\sqrt{gx+f}}-3\,{\frac{aeg}{ \left ( dg-ef \right ) ^{2}\sqrt{ \left ( dg-ef \right ) e}}\arctan \left ({\frac{\sqrt{gx+f}e}{\sqrt{ \left ( dg-ef \right ) e}}} \right ) }+{\frac{bdg}{ \left ( dg-ef \right ) ^{2}}\arctan \left ({e\sqrt{gx+f}{\frac{1}{\sqrt{ \left ( dg-ef \right ) e}}}} \right ){\frac{1}{\sqrt{ \left ( dg-ef \right ) e}}}}+2\,{\frac{bef}{ \left ( dg-ef \right ) ^{2}\sqrt{ \left ( dg-ef \right ) e}}\arctan \left ({\frac{\sqrt{gx+f}e}{\sqrt{ \left ( dg-ef \right ) e}}} \right ) }+{\frac{c{d}^{2}g}{ \left ( dg-ef \right ) ^{2}e}\arctan \left ({e\sqrt{gx+f}{\frac{1}{\sqrt{ \left ( dg-ef \right ) e}}}} \right ){\frac{1}{\sqrt{ \left ( dg-ef \right ) e}}}}-4\,{\frac{cdf}{ \left ( dg-ef \right ) ^{2}\sqrt{ \left ( dg-ef \right ) e}}\arctan \left ({\frac{\sqrt{gx+f}e}{\sqrt{ \left ( dg-ef \right ) e}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((c*x^2+b*x+a)/(e*x+d)^2/(g*x+f)^(3/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)/((e*x + d)^2*(g*x + f)^(3/2)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.291994, size = 1, normalized size = 0.01 \[ \left [\frac{{\left (2 \,{\left (2 \, c d^{2} e - b d e^{2}\right )} f g -{\left (c d^{3} + b d^{2} e - 3 \, a d e^{2}\right )} g^{2} +{\left (2 \,{\left (2 \, c d e^{2} - b e^{3}\right )} f g -{\left (c d^{2} e + b d e^{2} - 3 \, a e^{3}\right )} g^{2}\right )} x\right )} \sqrt{g x + f} \log \left (\frac{\sqrt{e^{2} f - d e g}{\left (e g x + 2 \, e f - d g\right )} + 2 \,{\left (e^{2} f - d e g\right )} \sqrt{g x + f}}{e x + d}\right ) - 2 \,{\left (2 \, c d e f^{2} + 2 \, a d e g^{2} +{\left (c d^{2} - 3 \, b d e + a e^{2}\right )} f g +{\left (2 \, c e^{2} f^{2} - 2 \, b e^{2} f g +{\left (c d^{2} - b d e + 3 \, a e^{2}\right )} g^{2}\right )} x\right )} \sqrt{e^{2} f - d e g}}{2 \,{\left (d e^{3} f^{2} g - 2 \, d^{2} e^{2} f g^{2} + d^{3} e g^{3} +{\left (e^{4} f^{2} g - 2 \, d e^{3} f g^{2} + d^{2} e^{2} g^{3}\right )} x\right )} \sqrt{e^{2} f - d e g} \sqrt{g x + f}}, \frac{{\left (2 \,{\left (2 \, c d^{2} e - b d e^{2}\right )} f g -{\left (c d^{3} + b d^{2} e - 3 \, a d e^{2}\right )} g^{2} +{\left (2 \,{\left (2 \, c d e^{2} - b e^{3}\right )} f g -{\left (c d^{2} e + b d e^{2} - 3 \, a e^{3}\right )} g^{2}\right )} x\right )} \sqrt{g x + f} \arctan \left (-\frac{e f - d g}{\sqrt{-e^{2} f + d e g} \sqrt{g x + f}}\right ) -{\left (2 \, c d e f^{2} + 2 \, a d e g^{2} +{\left (c d^{2} - 3 \, b d e + a e^{2}\right )} f g +{\left (2 \, c e^{2} f^{2} - 2 \, b e^{2} f g +{\left (c d^{2} - b d e + 3 \, a e^{2}\right )} g^{2}\right )} x\right )} \sqrt{-e^{2} f + d e g}}{{\left (d e^{3} f^{2} g - 2 \, d^{2} e^{2} f g^{2} + d^{3} e g^{3} +{\left (e^{4} f^{2} g - 2 \, d e^{3} f g^{2} + d^{2} e^{2} g^{3}\right )} x\right )} \sqrt{-e^{2} f + d e g} \sqrt{g x + f}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)/((e*x + d)^2*(g*x + f)^(3/2)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x**2+b*x+a)/(e*x+d)**2/(g*x+f)**(3/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.277342, size = 381, normalized size = 2.31 \[ \frac{{\left (c d^{2} g - 4 \, c d f e + b d g e + 2 \, b f e^{2} - 3 \, a g e^{2}\right )} \arctan \left (\frac{\sqrt{g x + f} e}{\sqrt{d g e - f e^{2}}}\right )}{{\left (d^{2} g^{2} e - 2 \, d f g e^{2} + f^{2} e^{3}\right )} \sqrt{d g e - f e^{2}}} - \frac{{\left (g x + f\right )} c d^{2} g^{2} + 2 \, c d f^{2} g e -{\left (g x + f\right )} b d g^{2} e - 2 \, b d f g^{2} e + 2 \, a d g^{3} e + 2 \,{\left (g x + f\right )} c f^{2} e^{2} - 2 \, c f^{3} e^{2} - 2 \,{\left (g x + f\right )} b f g e^{2} + 2 \, b f^{2} g e^{2} + 3 \,{\left (g x + f\right )} a g^{2} e^{2} - 2 \, a f g^{2} e^{2}}{{\left (d^{2} g^{3} e - 2 \, d f g^{2} e^{2} + f^{2} g e^{3}\right )}{\left (\sqrt{g x + f} d g +{\left (g x + f\right )}^{\frac{3}{2}} e - \sqrt{g x + f} f e\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)/((e*x + d)^2*(g*x + f)^(3/2)),x, algorithm="giac")
[Out]